<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>参照规则</title>
    <script src="../../../../scripts/boot.js" type="text/javascript"></script>
    <style type="text/css">
        html, body {
            margin: 0;
            padding: 0;
            border: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <!--按钮栏-->
    <div style="width:100%;">
        <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
            <table style="width:100%;">
                <tr>
                    <td style="width:100%;">
                        <form id="form1" action="post">
                            <input property="editor" id="targetForm1" name="targetForm"  class="mini-combobox" onclick="requestcom()" style="width:15%;"
                                   data="states"  valueField="tableClassName" textField="tableChClassName" emptyText="请选择目标单据" required="true" onvaluechanged="onvaluechanged"/>
                            <input property="editor" name="targetFormFiled"  class="mini-combobox" style="width:15%;"
                                   data="states" valueField="cTableField" textField="cTableField_ch" emptyText="请选择目标单据字段" required="true" />
                            <input property="editor" id="sourceForm1" name="sourceForm"  class="mini-combobox" onclick="requestbobox()" style="width:15%;"
                                   data="states" valueField="cTableName" textField="tableChClassName" emptyText="请选择源单据" required="true" onvaluechanged="onvaluechanged2" />
                            <input property="editor" id="primarytable1" name="primarytable"  class="mini-combobox"  style="width:15%;"
                                   data="states" valueField="tableClassName" textField="tableChClassName" emptyText="请选择主表或子表" required="true" onvaluechanged="onvaluechanged3" />
                            <input property="editor" name="sourceFormFiled"  class="mini-combobox" style="width:15%;"
                                   data="states" valueField="cTableField" textField="cTableField_ch" emptyText="请选择源单据字段" required="true" />
                        </form>
                    </td>
                    <td style="white-space:nowrap;">
                        <a class="mini-button" iconCls="icon-ok" onclick="onOk()">确定</a>
                        <a class="mini-button" iconCls="icon-ok" onclick="onSubmit()">提交</a>
                        <a class="mini-button" iconCls="icon-remove" onclick="onRemove()">刪除</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!-- 表格数据 -->
    <div class="mini-fit">
        <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" idField="socketId" multiSelect="true" showPager='false' allowUnselect='true'>
            <div property="columns">
                <!--<div type="checkcolumn" ></div>-->
                <div field="targetForm" width="60" headerAlign="center" align="center">目标单据</div>
                <div field="targetFormFiled" width="60" headerAlign="center" align="center" >目标单据字段</div>
                <div field="sourceForm" width="100" headerAlign="center" align="center" >源单据</div>
                <div field="sourceFormFiled" width="100" headerAlign="center" align="center" >源单据字段</div>
            </div>
        </div>
    </div>

    <script type="text/javascript" src="../../js/reference/addRefRule.js"></script>
</body>
</html>